﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DP.RecallDeal.Interface.Requests;
using System.IO;

namespace DP.RecallDeal.Interface.Tests.Parsers
{
    public class MockRequest : BaseRequest, IRequest
    {
        public MockRequest(IRequest request, string fileName)
            : base()
        {
            this.FileName = fileName;
        }

        public MockRequest(string fileName)
        {
            this.FileName = fileName;
        }

        public string FileName { get; set; }

        public override System.IO.Stream GetResponseStreamByPOST()
        {
            return File.Open(@"..\..\Parsers\MockXMLs\" + FileName, FileMode.Open, FileAccess.Read);
        }
    }
}
